extern void v_arc __PROTO((short _Hnd, short _X, short _Y, short _Radius, short _Begang, short _Endang));
extern void v_bar __PROTO((short _Hnd, short _Pxy[]));
extern void v_bit_image __PROTO((short _Hnd, char *_Filename, short _Aspect, short _X_scale, short _Y_scale, short _H_align, short _V_align, short *_Pxy));
extern void v_cellarray __PROTO((short _Hnd, short _Pxy[], short _Row_length, short _Elements, short _Nrows, short _Write_mode, short _Colarray[]));
extern void v_circle __PROTO((short _Hnd, short _X, short _Y, short _Radius));
extern void vm_pagesize __PROTO((short _Hnd, short _Pgwidth, short _Pgheight));
extern void vq_cellarray __PROTO((short _Hnd, short _Pxy[], short _Row_len, short _Nrows, short *_El_used, short *_Rows_used, short *_Status, short _Color[]));
extern void vq_chcells __PROTO((short _Hnd, short *_N_rows, short *_N_cols));
extern short vq_color __PROTO((short _Hnd, short _Index, short _Flag, short _Rgb[]));
extern void vq_curaddress __PROTO((short _Hnd, short *_Cur_row, short *_Cur_col));
extern void vq_dimensions __PROTO((short _Hnd, short *_Xdimension, short *_Ydimension));
extern void vq_extnd __PROTO((short _Hnd, short _Flag, short _Work_out[]));
extern unsigned long vq_gdos __PROTO((void));
extern void vq_key_s __PROTO((short _Hnd, short *_State));
extern void vq_mouse __PROTO((short _Hnd, short *_Pstatus, short *_X, short *_Y));
extern void vq_scan __PROTO((short _Hnd, short *_G_slice, short *_G_page, short *_A_slice, short *_A_page, short *_Div_fac));
extern short vq_tabstatus __PROTO((short _Hnd));
extern void vqf_attributes __PROTO((short _Hnd, short _Atrib[]));
extern void vqin_mode __PROTO((short _Hnd, short _Dev, short *_Mode));
extern void vql_attributes __PROTO((short _Hnd, short _Atrib[]));
extern void vqm_attributes __PROTO((short _Hnd, short _Atrib[]));
extern short vqp_filmname __PROTO((short _Hnd, short _Index, char *_Name));
extern void vqt_attributes __PROTO((short _Hnd, short _Atrib[]));
extern void vqt_extent __PROTO((short _Hnd, char *_Str, short _Extent[]));
extern void vqt_fontinfo __PROTO((short _Hnd, short *_Minade, short *_Maxade, short _Distances[], short *_Maxwidth, short _Effects[]));
extern short vqt_name __PROTO((short _Hnd, short _Element, char *_Name));
extern short vqt_width __PROTO((short _Hnd, short _Char, short *_Cw, short *_Ldelta, short *_Rdelta));
extern void vr_recfl __PROTO((short _Hnd, short _Pxy[]));
extern short appl_read __PROTO((short ApId, short Length, void *ApPbuff));
extern short appl_write __PROTO((short ApId, short Length, void *ApPbuff));
extern short appl_find __PROTO((char *Name));
extern short appl_tplay __PROTO((void *Mem, short Num, short Scale));
extern short appl_trecord __PROTO((void *Mem, short Count));
extern short appl_exit __PROTO((void));
extern short evnt_keybd __PROTO((void));
extern short evnt_button __PROTO((short Clicks, short WhichButton,short WhichState, short *Mx, short *My,short *ButtonState, short *KeyState));
extern short evnt_mouse __PROTO((short EnterExit, short InX, short InY, short InW,short InH, short *OutX, short *OutY,short *ButtonState, short *KeyState));
extern short evnt_mesag __PROTO((short MesagBuf[]));
extern short evnt_timer __PROTO((unsigned short locount, unsigned short hicount));
extern short evnt_multi __PROTO((short Type, short Clicks, short WhichButton,short WhichState, short EnterExit1, short In1X,short In1Y, short In1W, short In1H,
short EnterExit2, short In2X, short In2Y,short In2W, short In2H, short MesagBuf[],unsigned short I1, unsigned short I2,short *OutX, short *OutY,short *ButtonState, short *KeyState, short *Key,short *ReturnCount));
extern short evnt_dclick __PROTO((short ToSet, short SetGet));
extern short form_do __PROTO((OBJECT *Tree, short StartObj));
extern short form_dial __PROTO((short Flag, short Sx, short Sy, short Sw, short Sh,short Bx, short By, short Bw, short Bh));
extern short form_alert __PROTO((short DefButton, char *Str));
extern short form_error __PROTO((short ErrorCode));
extern short form_center __PROTO((OBJECT *Tree, short *Cx, short *Cy, short *Cw,short *Ch));
extern short form_keybd __PROTO((OBJECT *Ktree, short Kobject, short Kobnext, short Kchar, short *Knxtobject, short *Knxtchar));
extern short form_button __PROTO((OBJECT *Btree, short Bobject, short Bclicks,short *Bnxtobj));
extern short fsel_input __PROTO((char *Path, char *File, short *ExitButton));
extern short fsel_exinput __PROTO((char *Path, char *File, short *ExitButton,char *Prompt));
extern short graf_rubberbox __PROTO((short Ix, short Iy, short Iw, short Ih, short *Fw, short *Fh));
extern short graf_dragbox __PROTO((short Sw, short Sh, short Sx, short Sy, short Bx, short By, short Bw, short Bh, short *Fw, short *Fh));
extern short graf_movebox __PROTO((short Sw, short Sh, short Sx, short Sy, short Dx, short Dy));
extern short graf_growbox __PROTO((short Sx, short Sy, short Sw, short Sh, short Fx, short Fy, short Fw, short Fh));
extern short graf_shrinkbox __PROTO((short Fx, short Fy, short Fw, short Fh, short Sx, short Sy, short Sw, short Sh));
extern short graf_watchbox __PROTO((OBJECT *Tree, short Object, short InState, short OutState));
extern short graf_slidebox __PROTO((OBJECT *Tree, short Parent, short Object, short Direction));
extern short graf_handle __PROTO((short *Wchar, short *Hchar, short *Wbox, short *Hbox));
extern short graf_mouse __PROTO((short Form, void *FormAddress));
extern short graf_mkstate __PROTO((short *Mx, short *My, short *ButtonState, short *KeyState));
extern short menu_bar __PROTO((OBJECT *Tree, short ShowFlag));
extern short menu_icheck __PROTO((OBJECT *Tree, short Item, short CheckFlag));
extern short menu_ienable __PROTO((OBJECT *Tree, short Item, short EnableFlag));
extern short menu_tnormal __PROTO((OBJECT *Tree, short Item, short NormalFlag));
extern short menu_text __PROTO((OBJECT *Tree, short Item, char *Text));
extern short menu_register __PROTO((short ApId, char *MenuText));
extern short objc_add __PROTO((OBJECT *Tree, short Parent, short Child));
extern short objc_delete __PROTO((OBJECT *Tree, short Object));
extern short objc_draw __PROTO((OBJECT *Tree, short Start, short Depth, short Cx, short Cy, short Cw, short Ch));
extern short objc_find __PROTO((OBJECT *Tree, short Start, short Depth, short Mx, short My));
extern short objc_offset __PROTO((OBJECT *Tree, short Object, short *X, short *Y));
extern short objc_order __PROTO((OBJECT *Tree, short Object, short NewPos));
extern short objc_edit __PROTO((OBJECT *Tree, short Object, short Char, short Index, short Kind, short *NewIndex));
extern short objc_change __PROTO((OBJECT *Tree, short Object, short Res, short Cx, short Cy, short Cw, short Ch, short NewState, short Redraw));
extern short rsrc_load __PROTO((char *Name));
extern short rsrc_free __PROTO((void));
extern short rsrc_gaddr __PROTO((short Type, short Index, void *Address));
extern short rsrc_saddr __PROTO((short Type, short Index, void *Address));
extern short rsrc_obfix __PROTO((OBJECT *Tree, short Index));
extern short scrp_read __PROTO((char *Scrappath));
extern short scrp_write __PROTO((char *Scrappath));
extern short shel_read __PROTO((char *Command, char *Tail));
extern short shel_write __PROTO((short Exit, short Graphic, short Aes, char *Command, char *Tail));
extern short shel_find __PROTO((char *buf));
extern short shel_envrn __PROTO((char *result, char *param));
extern short shel_get __PROTO((char *Buf, short Len));
extern short shel_put __PROTO((char *Buf, short Len));
extern short wind_create __PROTO((short Parts, short Wx, short Wy, short Ww, short Wh));
extern short wind_open __PROTO((short WindowHandle, short Wx, short Wy, short Ww, short Wh));
extern short wind_close __PROTO((short WindowHandle));
extern short wind_delete __PROTO((short WindowHandle));
extern short wind_get __PROTO((short WindowHandle, short What, short *W1, short *W2, short *W3, short *W4));
extern short wind_set __PROTO((short WindowHandle, short What, ...));
extern short wind_find __PROTO((short X, short Y));
extern short wind_update __PROTO((short Code));
extern short wind_calc __PROTO((short Type, short Parts, short InX, short InY, short InW, short InH, short *OutX, short *OutY, short *OutW, short *OutH));